var t = getApp();

Page({
    data: {},
    onLoad: function(i) {
        if (i.scene) {
            var e = decodeURIComponent(i.scene);
            if (e) {
                var a = [];
                if ((a = e.split(",")).length >= 2) for (var n = 0; n < a.length; n++) {
                    var o;
                    "mid" == (o = a[n].split("="))[0] && t._setMid(o[1]), "scene" == o[0] && this.setData({
                        id: o[1]
                    });
                } else this.setData({
                    id: a[0]
                });
            }
        }
        this.setData({
            store_id: i.store_id,
            activity: i,
            activity_id: i.activity_id || null,
            share_uid: i.share_uid || null
        }), i.tag && this.setData({
            tag: i.tag
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: this.data.title ? this.data.title : "",
            path: "/packageC/diyform/diyform?scene=" + this.data.id
        };
    },
    onShareTimeline: function() {
        return {
            title: this.data.title ? this.data.title : "",
            path: "/packageC/diyform/diyform?scene=" + this.data.id
        };
    }
});